<template>
  <div style="padding-right:100px;">
    <z-form :data="dataList" :formProps="tab1FormProps" :fields="tab1Fields"></z-form>
  </div>
</template>

<script>
import commonMixin from '@/views/_common/mixin'
export default {
  name: '',
  mixins: [commonMixin],
  components: {},
  props: {
    dataList: {
      type: Object,
      default: {},
    },
  },
  data() {
    return {
      tab1FormProps: {
        disabled: true,
        labelWidth: '140px',
      },
      tab1Fields: [
        { title: '料号', key: 'key_part_no', span: 8 },
        { title: '名称', key: 'key_part_name', span: 8 },
        {
          title: '分类',
          key: 'category',
          span: 8,
          name: 'select',
          options: [
            { label: '原材料', value: 1 },
            { label: '产成品', value: 2 },
          ],
        },
        { title: '材料类型', key: 'key_part_type', span: 8 },
        { title: '所属机种', key: 'model_name', span: 8 },
        { title: '产品简码', key: 'brief_code', span: 8 },
        { title: '物料描述', key: 'key_part_desc', span: 24 },
        { title: '计量体系', key: 'unit_mode', span: 8 },
        { title: '单位码', key: 'unit_code', span: 8 },
        { title: '单位', key: 'unit_name', span: 8 },
        { title: '状态', key: 'status', span: 8 },
        // { title: '工程码', key: 'e_code', span: 8 },
        { title: '安全库存', key: 'safty_inventory', span: 8 },
        { title: 'Version', key: 'version', span: 8 },
        { title: '属性1', key: 'property1', span: 8 },
        { title: '属性2', key: 'property2', span: 8 },
        { title: '备注', key: 'remarks', name: 'textarea', span: 24 },
      ],
    }
  },
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  methods: {},
}
</script>

<style lang="less" scoped></style>